function Druid_CheckForMissingRake()
	local x
	if # tblPGetMeleeEnemies > 0 then
		for x = 0, # tblPGetMeleeEnemies do
			local obj = tblPGetMeleeEnemies[x]
			if obj
			and obj:Exists()
			and Player:IsFacing(obj)
			then
				local vRake = select(8,obj:GetAura(ccrSpellIDtoSpellName(RAKE)))
				if (vRake == nil or vRake ~= "player") then
					return true
				else
					return false
				end
			end
		end
		return false
	else
		return false
	end					
end

function Druid_ApplyMissingRake()
	local x
	if # tblPGetMeleeEnemies > 0 then
		for x = 0, # tblPGetMeleeEnemies do
			local obj = tblPGetMeleeEnemies[x]
			if obj
			and obj:Exists()
			and Player:IsFacing(obj)
			and ccrSpellCanAttack(RAKE, obj)
			then
				local vRake = select(8, obj:GetAura(ccrSpellIDtoSpellName(RAKE)))
				if (vRake == nil or vRake ~= "player") then
					obj:CastSpellByName(GetSpellInfo(RAKE))
					return
				else
					return
				end
			end
		end
	else
		return
	end
	return
end

function Druid_CheckForMissingThrash(spec)
	local vThrash
	if spec == nil then
		if ccrPlayerSpec() == 2 then vThrash = THRASH_FERAL end
		if ccrPlayerSpec() == 3 then vThrash = THRASH_BEAR end
	else
		if spec == 2 then vThrash = THRASH_FERAL end
		if spec == 3 then vThrash = THRASH_BEAR end
	end
	local x
	if # tblPGetMeleeEnemies > 0 then
		for x = 0, # tblPGetMeleeEnemies do
			local obj = tblPGetMeleeEnemies[x]
			if obj
			and obj:Exists()
			then
				local vThrash = select(8, obj:GetAura(ccrSpellIDtoSpellName(vThrash)))
				if (vThrash == nil or vThrash ~= "player") then
					return true
				else
					return false
				end
			end
		end
		return false
	else
		return false
	end					
end

function Druid_ApplyMissingThrash(spec)
	local vThrash
	if spec == nil then
		if ccrPlayerSpec() == 2 then vThrash = THRASH_FERAL end
		if ccrPlayerSpec() == 3 then vThrash = THRASH_BEAR end
	else
		if spec == 2 then vThrash = THRASH_FERAL end
		if spec == 3 then vThrash = THRASH_BEAR end
	end
	ccrCast(vThrash)
	return
end
